﻿@model Occupie.Models.RegisterModelEmployer

<h2>Регистрирай се като работодател</h2>

    @using (Ajax.BeginForm(new AjaxOptions { HttpMethod = "Post", InsertionMode = InsertionMode.Replace, UpdateTargetId = "register-form" }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset class="no-border">
            <legend>Registration Form</legend>

            <div class="alignleft">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Name)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Name)
                    <div>
                        @Html.ValidationMessageFor(model => model.Name)
                    </div>
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.EIK)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.EIK)
                    <div>
                        @Html.ValidationMessageFor(model => model.EIK)
                    </div>

                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.Address)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Address)
                    <div>
                        @Html.ValidationMessageFor(model => model.Address)
                    </div>
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.Website)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Website)
                    <div>
                        @Html.ValidationMessageFor(model => model.Website)
                    </div>
                </div>

                <div class="editor-label">
                @*    Email, видим в профила*@
                     @Html.LabelFor(model => model.Email)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Email)
                    <div>
                        @Html.ValidationMessageFor(model => model.Email)
                    </div>
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.AdminEmail)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.AdminEmail)
                    <div>
                        @Html.ValidationMessageFor(model => model.AdminEmail)
                    </div>
                </div>
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.UserName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.UserName)
                <div>
                    @Html.ValidationMessageFor(model => model.UserName)
                </div>
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Password)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Password)
                <div>
                    @Html.ValidationMessageFor(model => model.Password)
                </div>
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.ConfirmPassword)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ConfirmPassword)
                <div>
                    @Html.ValidationMessageFor(model => model.ConfirmPassword)
                </div>
            </div>
        </fieldset>
        <input type="submit" value="Регистрирай" style="margin-top:20px" />
    }